<template>
     <van-nav-bar
      :title="title"
      left-arrow
      @click-left="backHome"
      fixed
      class="nav_bar"
    >
      <template #right>
        <van-icon name="ellipsis" size="18" />
      </template>
    </van-nav-bar>
</template>

<script>
export default {
    name:"topNav",
    props:["title"],
    data(){
        return{

        }
    },
    methods:{
        backHome() {
      this.$router.back();
    },
    }
}
</script>
<style scoped>
.van-nav-bar{
  border-bottom: 1px solid #cccccc !important;
}
</style>